*###########################################################
* Surveying Native Americans:  Early Lessons from the CMPS  *
* Foxworth, Ellenwood and Evans                             *
* Journal: PS: Political Science & Politics                 *
* Stata Replication Code                                    *
* Tested on Stata 18                                        *
* No add-on software used for analysis                      *
*###########################################################*


* be sure to modify the below line to reflect the location where you saved the downloaded data file, e.g. use "C:\Users\yourusername\Desktop\CMPS 2020_replication data _final.dta"

use "CMPS 2020_replication data.dta", clear
	

***************
*** Table 1 ***
***************

ta S2_Racer5 [iw=os_weight]
ta Q803  [iw=os_weight] 
ta S2_Race_Prime [iw=os_weight]
ta S2_Nativer2 [iw=os_weight]
ta S2_Nativer3 [iw=os_weight]
ta S2_Nativer4 [iw=os_weight]
ta S2_Nativer5 [iw=os_weight]
ta Q797r5 [iw=os_weight]
ta Q798r5 [iw=os_weight]
ta S11 [iw=os_weight]

***************
*** Table 2 ***
***************

****column1 ****
ta S2_Racer5 [iw=os_weight]
ta S2_M if S2_Racer5 ==1 [iw=os_weight] 
ta S6 if S2_Racer5 ==1 [iw=os_weight] 
ta Q14 if S2_Racer5 ==1 [iw=os_weight] 
ta Q77r1 if S2_Racer5 ==1 [iw=os_weight] 
ta Q21 if S2_Racer5 ==1 [iw=os_weight] 
ta Q265 if S2_Racer5 ==1 [iw=os_weight] 
ta Q57 if S2_Racer5 ==1 [iw=os_weight] 
ta Q266 if S2_Racer5 ==1 [iw=os_weight] 
ta Q271 if S2_Racer5 ==1 [iw=os_weight] 
ta Q819 if S2_Racer5 ==1 [iw=os_weight] 



****column 2 ****
ta S2_Race_Prime [iw=os_weight] 
ta S2_M if S2_Race_Prime==5 [iw=os_weight] 
ta S6 if S2_Race_Prime==5 [iw=os_weight] 
ta Q14 if S2_Race_Prime==5 [iw=os_weight] 
ta Q77r1 if S2_Race_Prime==5 [iw=os_weight] 
ta Q21 if S2_Race_Prime==5 [iw=os_weight] 
ta Q265 if S2_Race_Prime==5 [iw=os_weight] 
ta Q57 if S2_Race_Prime==5 [iw=os_weight] 
ta Q57 if S2_Race_Prime==5 [iw=os_weight] 
ta Q266 if S2_Race_Prime==5 [iw=os_weight] 
ta Q271 if S2_Race_Prime==5 [iw=os_weight] 
ta Q819 if S2_Race_Prime==5 [iw=os_weight] 


****column 3 ****
ta Q803 [iw=os_weight] 
ta S2_M  if Q803==3 [iw=os_weight] 
ta S6 if Q803==3 [iw=os_weight] 
ta Q14  if Q803==3 [iw=os_weight] 
ta Q77r1 if Q803==3 [iw=os_weight] 
ta Q21 if Q803==3 [iw=os_weight] 
ta Q265 if Q803==3 [iw=os_weight] 
ta Q57 if Q803==3 [iw=os_weight] 
ta Q266 if Q803==3 [iw=os_weight] 
ta Q271 if Q803==3 [iw=os_weight] 
ta Q819 if Q803==3 [iw=os_weight] 



